
 
 F u n c t i o n :   i s F o c u s a b l e ( d o m E l e m e n t ,   b o o l I n c l u d i n g N e g a t i v e T a b I n d e x ) 
 
 
 
 D e s c r i p t i o n :   D e t e r m i n e s   i f   a   D O M   e l e m e n t   i s   f o c u s a b l e . 
 
 
 
 R e t u r n s :   T r u e   i f   y e s ,   F a l s e   o t h e r w i s e . 
 
 
 
 N o t e :   I f   o n l y   t h e   f i r s t   p a r a m e t e r   i s   u s e d ,   i s F o c u s a b l e   w i l l   o n l y   r e t u r n   t r u e   i f   t h e   r e f e r e n c e d   e l e m e n t   i s   i n   t h e   n a t i v e   t a b   o r d e r .   I f   t h e   s e c o n d   p a r a m e t e r   i s   s e t   t o   t r u e ,   i t   w i l l   a l s o   r e t u r n   t r u e   i f   t h e   e l e m e n t   i s   p r o g r a m m a t i c a l l y   f o c u s a b l e   u s i n g   t a b i n d e x = " - 1 " .   T h e   i s F o c u s a b l e ( )   f u n c t i o n   a l w a y s   r e t u r n s   a   B o o l e a n   v a l u e ,   e v e n   w h e n   c h a i n e d . 
 
 
 
 E x a m p l e : 
 
 
 
 / /   I s   a n   e l e m e n t   i n   t h e   n a t i v e   f o c u s   o r d e r ,   s u c h   a s   t a b b i n g   b a c k   o r   f o r w a r d . 
 
 v a r   i s N a t i v e l y F o c u s a b l e   =   $ A . i s F o c u s a b l e ( d o m E l e m e n t ) ; 
 
 
 
 / /   I s   a n   e l e m e n t   i n   t h e   n a t i v e   t a b   o r d e r ,   o r   c a n   i t   a l s o   r e c e i v e   f o c u s   u s i n g   d o m E l e m e n t . f o c u s ( ) . 
 
 v a r   c a n R e c e i v e F o c u s   =   $ A . i s F o c u s a b l e ( d o m E l e m e n t ,   t r u e ) ; 
 
 
 
 / /   O r   t h e   s a m e   u s i n g   c h a i n i n g 
 
 
 
 / /   I s   a n   e l e m e n t   i n   t h e   n a t i v e   f o c u s   o r d e r ,   s u c h   a s   t a b b i n g   b a c k   o r   f o r w a r d . 
 
 v a r   i s N a t i v e l y F o c u s a b l e   =   $ A ( d o m E l e m e n t ) . i s F o c u s a b l e ( ) ; 
 
 
 
 / /   I s   a n   e l e m e n t   i n   t h e   n a t i v e   t a b   o r d e r ,   o r   c a n   i t   a l s o   r e c e i v e   f o c u s   u s i n g   d o m E l e m e n t . f o c u s ( ) . 
 
 v a r   c a n R e c e i v e F o c u s   =   $ A ( d o m E l e m e n t ) . i s F o c u s a b l e ( t r u e ) ; 
 
 